import request from '@/utils/request'

/**
* 通信配置分页查询
* @param {查询条件} data
*/
export function listCommunicationConfig(query) {
  return request({
    url: 'formula/communicationconfig/list',
    method: 'get',
    params: query,
  })
}

/**
* 新增通信配置
* @param data
*/
export function addCommunicationConfig(data) {
  return request({
    url: 'formula/communicationconfig',
    method: 'post',
    data: data,
  })
}
/**
* 修改通信配置
* @param data
*/
export function updateCommunicationConfig(data) {
  return request({
    url: 'formula/communicationconfig',
    method: 'PUT',
    data: data,
  })
}
/**
* 获取通信配置详情
* @param {Id}
*/
export function getCommunicationConfig(id) {
  return request({
    url: 'formula/communicationconfig/' + id,
    method: 'get'
  })
}

/**
* 删除通信配置
* @param {主键} pid
*/
export function delCommunicationConfig(pid) {
  return request({
    url: 'formula/communicationconfig/delete/' + pid,
    method: 'delete'
  })
}
